//
//  ICMRepairPartSearchTableViewCell.h
//  ICrEAM
//
//  Created by FoREVer_SaD on 16/11/2.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ICMRepairPartsModel.h"
@class ICMRepairPartSearchTableViewCell;

@protocol ICMRepairPartSearchTableViewCellDelegate <NSObject>

@optional
- (void)repairPartSearchTableViewCell:(ICMRepairPartSearchTableViewCell*)cell andQuantity:(NSInteger)quantity;
- (void)quantityNotEnough:(NSString*)message;
- (void)selectPartWithCell:(ICMRepairPartSearchTableViewCell *)cell;

@end

@interface ICMRepairPartSearchTableViewCell : UITableViewCell

@property (nonatomic, weak) id<ICMRepairPartSearchTableViewCellDelegate>delegate;

@property (nonatomic, strong) UIButton *eventOperateButton;

@property (nonatomic, assign) int quantity;

@property (nonatomic, strong) ICMRepairPartsModel *model;

@property (nonatomic, assign) BOOL hasPartLeft;

- (void)setupLabelsWithModel:(ICMRepairPartsModel *)model;

@end
